<%@ page import="grailsweb.Seance" %>



<div class="fieldcontain ${hasErrors(bean: seanceInstance, field: 'date', 'error')} required">
	<label for="date">
		<g:message code="seance.date.label" default="Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="date" precision="day"  value="${seanceInstance?.date}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: seanceInstance, field: 'description', 'error')} ">
	<label for="description">
		<g:message code="seance.description.label" default="Description" />
		
	</label>
	<g:textField name="description" value="${seanceInstance?.description}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: seanceInstance, field: 'discount', 'error')} required">
	<label for="discount">
		<g:message code="seance.discount.label" default="Discount" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="discount" value="${fieldValue(bean: seanceInstance, field: 'discount')}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: seanceInstance, field: 'facility', 'error')} required">
	<label for="facility">
		<g:message code="seance.facility.label" default="Facility" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="facility" name="facility.id" from="${grailsweb.Facility.list()}" optionKey="id" required="" value="${seanceInstance?.facility?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: seanceInstance, field: 'movie', 'error')} required">
	<label for="movie">
		<g:message code="seance.movie.label" default="Movie" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="movie" name="movie.id" from="${grailsweb.Movie.list()}" optionKey="id" required="" value="${seanceInstance?.movie?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: seanceInstance, field: 'name', 'error')} ">
	<label for="name">
		<g:message code="seance.name.label" default="Name" />
		
	</label>
	<g:textField name="name" value="${seanceInstance?.name}"/>
</div>

